Read data

YVR

## [1] "../drought_code_yvr/data/YVR_maxtemp_avgexc_bymonth.csv"
## [1] "../drought_code_yvr/data/YVR_maxtemp_exc_over90th.csv"

plot nexc with year-month

Plot avg exc

Kelowna

plot nexc with year-month

Plot avg exc

Prince George

plot nexc with year-month

Plot avg exc

FortNelson

plot nexc with year-month

Plot avg exc

Abbotsford

plot nexc with year-month

Plot avg exc

Correlation

## Maximum cross-correlation is 0.1704268 at lag -0.75 
## Minimum cross-correlation is -0.006539131 at lag 1.083333

The maximum cross-correlation at lag -0.75 indicates a relatively stronger relationship when Kelowna’s data leads YVR’s data by 0.75 time units.